package com.xqboss.apps.domain.synthesis;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xqboss.apps.domain.BaseTable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 合成活动
 * </p>
 *
 * @author 木鱼
 * @since 2023-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Synthesis对象", description="合成活动")
public class Synthesis extends BaseTable implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "活动名称")
    private String name;

    @ApiModelProperty(value = "主图")
    private String mainImg;

    @ApiModelProperty(value = "详情主图")
    private String detailImg;

    @ApiModelProperty(value = "公告id")
    private Long msgId;

    @ApiModelProperty(value = "方案id")
    private Long planId;

    @ApiModelProperty(value = "身份id")
    private Long identityRankId;

    @ApiModelProperty(value = "开始时间")
    private LocalDateTime beginTime;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "分类id[category表]")
    private Long categoryId;

    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    @ApiModelProperty(value = "用户总合成限制最大数")
    private Integer userMaxNum;

    @ApiModelProperty(value = "用户单次合成限制最大数")
    private Integer userSingleMaxNum;

    @ApiModelProperty(value = "持图开关[1:开启;0:关闭]")
    private Integer hold;

    @ApiModelProperty(value = "白名单开关[1:开启;0:关闭]")
    private Integer white;

    @ApiModelProperty(value = "白名单开始时间")
    private LocalDateTime whiteTime;

    @ApiModelProperty(value = "是否显示[1:显示;0:不显示]")
    @TableField(value = "`show`")
    private Integer show;

//    @ApiModelProperty(value = "是否推荐[0:否;1:是]")
//    private Integer suggest;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否仅支持白名单")
    private Boolean whiteOnly;
}
